retire qsort in favor of std::sort, std::stable_sort (#888)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 7 Jul 2022 19:19:07 +0000 (13:19 -0600)
committerGitHub <noreply@github.com>
Thu, 7 Jul 2022 19:19:07 +0000 (13:19 -0600)
commit5c93d072cc5d2003ed567c7f76dba92e4b2d9a69
tree705cea5c9e959c80a80159ea9da34040d04dc191
parentf7ee0ea2d30a35cb4ccdc72352e07b548dc2ef56
retire qsort in favor of std::sort, std::stable_sort (#888)

* replace qsort with std::sort or std::stable_sort

* add test for duplicate filter using gc_data exported dates.

* fix reference file permissions.

* fix smplrout sort bug that shows up on macos with std::sort.

the compare function has always generated incorrect values when
both objects are HUGEVAL. The historic function worked with qsort
everywhere, worked with std::sort on linux and windows, but failed
with std::sort on macos.
duplicate.cc
duplicate.h
garmin_txt.cc
reference/duplicate_exported_1.csv [new file with mode: 0644]
reference/duplicate_exported_1~csv.csv [new file with mode: 0644]
reference/duplicate_exported_2.csv [new file with mode: 0644]
reference/duplicate_exported_2~csv.csv [new file with mode: 0644]
smplrout.cc
testo.d/duplicate.test